:root {
    --main-color: #459353;
    --main-color-light: #5caf6d;
    --text-color: #333;
    --bg-color: #f6fff6;
}

body {
    margin: 0;
    font-family: "Arial", sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    width: 100%;
    padding: 20px;
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from {opacity: 0; transform: translateY(20px);}
    to {opacity: 1; transform: translateY(0);}
}

/* --- HEADER BUTTON BAR --- */
.top-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 22px;
    border-radius: 10px;
    border: none;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Кнопка назад — всегда один цвет */
.btn.back {
    background: var(--main-color);
    color: white;
}

.btn.back:hover {
    background: var(--main-color-light); /* Светлее при наведении */
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

/* Остальные кнопки — заливаются при наведении */
.btn.fill {
    background: transparent;
    border: 2px solid var(--main-color);
    color: var(--main-color);
}

.btn.fill:hover {
    background: var(--main-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

/* --- TITLE --- */
h1 {
    text-align: center;
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 25px;
    color: var(--main-color);
    letter-spacing: 1px;
}

/* --- PRODUCT IMAGE --- */
.image-block {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
    animation: fadeIn 1s ease;
}

.image-block img {
    max-width: 100%;
    height: auto;
    max-height: 500px; /* Максимальная высота для десктопа */
    display: block;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background-color: white;
    padding: 20px; /* Белый фон вокруг изображения как на маркетплейсах */
    object-fit: contain;
    transition: transform 0.4s ease;
}

.image-block:hover img {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* --- TEXT --- */
.description {
    font-size: 18px;
    line-height: 1.55;
    margin-bottom: 25px;
}

.description p {
    margin-bottom: 18px;
}

.description ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.description li {
    margin-bottom: 8px;
}

/* Стили для горизонтальных линий */
hr {
    border: none;
    border-top: 2px dashed #4caf50;
    width: 80%;
    margin: 25px auto;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .image-block img {
        max-height: 450px;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .image-block img {
        max-height: 400px;
        padding: 12px;
    }
}

@media (max-width: 600px) {
    .btn {
        width: 100%;
        text-align: center;
    }

    h1 {
        font-size: 24px;
    }
    
    .image-block img {
        max-height: 350px;
        padding: 10px;
        border-radius: 8px;
    }
    
    .description {
        font-size: 16px;
    }
    
    hr {
        width: 90%;
        margin: 20px auto;
    }
}

@media (max-width: 480px) {
    .image-block img {
        max-height: 300px;
        padding: 8px;
    }
    
    .top-buttons {
        gap: 10px;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 15px;
    }
}

@media (max-width: 380px) {
    .image-block img {
        max-height: 250px;
    }
}